package com.fs.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 历史订单对象 history_orders
 * 
 * @author mumu
 * @date 2024-10-18
 */
public class HistoryOrders extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    /** 订单id */
    @JsonSerialize(using = ToStringSerializer.class)
    @Excel(name = "订单id")
    private Long id;
    /** 订单所属人 */
    private Long userId;
    /** 服务类型id */
    private Long serveTypeId;
    /** 服务人 */
    private Long serveProviderId;
    /** 服务人类型，2：服务人员，3：机构 */
    private Long serveProviderType;
    /** 服务项id */
    private Long serveItemId;
    /** 服务id */
    private Long serveId;
    /** 城市编码 */
    private String cityCode;
    /** 服务类型名称 */
    private String serveTypeName;
    /** 服务名称 */
    @Excel(name = "服务名称")
    private String serveItemName;
    /** 服务项图片 */
    private String serveItemImg;
    /** 服务单位 */
    private Long unit;
    /** 订单状态 */
    @Excel(name = "订单状态")
    private Long ordersStatus;
    /** 支付状态 */
    @Excel(name = "支付状态")
    private Long payStatus;
    /** 退款状态 */
    @Excel(name = "退款状态")
    private Long refundStatus;
    /** 订单完成时间 */
    private Date tradeFinishTime;
    /** 支付渠道 */
    private String tradingChannel;
    /** 三方支付渠道 */
    private String thirdOrderId;
    /** 派单时间 */
    private Date dispatchTime;
    /** 单价 */
    private BigDecimal price;
    /** 购买数量 */
    private Long purNum;
    /** 订单金额（元） */
    @Excel(name = "订单金额", readConverterExp = "元=")
    private BigDecimal totalAmount;
    /** 实付金额（元） */
    @Excel(name = "实付金额", readConverterExp = "元=")
    private BigDecimal realPayAmount;
    /** 三方退款流水 */
    private String thirdRefundOrderId;
    /** 优惠金额 */
    private BigDecimal discountAmount;
    /** 服务地址 */
    @Excel(name = "服务地址")
    private String serveAddress;
    /** 联系人手机号 */
    private String contactsPhone;
    /** 联系人姓名 */
    private String contactsName;
    /** 取消人 */
    private String cancelerName;
    /** 服务人员姓名 */
    @Excel(name = "服务人员姓名")
    private String serveProviderStaffName;
    /** 服务人员员手机号 */
    @Excel(name = "服务人员员手机号")
    private String serveProviderStaffPhone;
    /** 机构名称 */
    private String institutionName;
    /** 机构电话 */
    private String institutionPhone;
    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date placeOrderTime;
    /** 服务开始时间 */
    private Date serveStartTime;
    /** 服务结束时间 */
    private Date serveEndTime;
    /** 实际服务开始时间 */
    private Date realServeStartTime;
    /** 实际服务结束时间 */
    private Date realServeEndTime;
    /** 服务开始图片 */
    private String serveBeforeImgs;
    /** 服务开始说明 */
    private String serveBeforeIllustrate;
    /** 服务完成图片 */
    private String serveAfterImgs;
    /** 服务完成说明 */
    private String serveAfterIllustrate;
    /** 支付超时时间，该时间只对待支付有意义 */
    private Date paymentTimeout;
    /** 经度 */
    private BigDecimal lon;
    /** 纬度 */
    private BigDecimal lat;
    /** 支付时间 */
    private Date payTime;
    /** 取消/被退单时间 */
    private Date cancelTime;
    /** 取消/被退单原因 */
    private String cancelReason;
    /** 交易结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交易结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date transactionCompletionTime;
    /** 评价时间 */
    private Date evaluationTime;
    /** 评分 */
    private BigDecimal evaluationScore;
    /** 用户端是否展示，1：展示，0：隐藏 */
    private Long display;
    /** 排序时间字段 */

    private Date sortTime;
    public void setId(Long id) 
    {
        this.id = id;
    }
    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }
    public Long getUserId() 
    {
        return userId;
    }
    public void setServeTypeId(Long serveTypeId) 
    {
        this.serveTypeId = serveTypeId;
    }

    public Long getServeTypeId() 
    {
        return serveTypeId;
    }
    public void setServeProviderId(Long serveProviderId) 
    {
        this.serveProviderId = serveProviderId;
    }

    public Long getServeProviderId() 
    {
        return serveProviderId;
    }
    public void setServeProviderType(Long serveProviderType) 
    {
        this.serveProviderType = serveProviderType;
    }

    public Long getServeProviderType() 
    {
        return serveProviderType;
    }
    public void setServeItemId(Long serveItemId) 
    {
        this.serveItemId = serveItemId;
    }

    public Long getServeItemId() 
    {
        return serveItemId;
    }
    public void setServeId(Long serveId) 
    {
        this.serveId = serveId;
    }

    public Long getServeId() 
    {
        return serveId;
    }
    public void setCityCode(String cityCode) 
    {
        this.cityCode = cityCode;
    }

    public String getCityCode() 
    {
        return cityCode;
    }
    public void setServeTypeName(String serveTypeName) 
    {
        this.serveTypeName = serveTypeName;
    }

    public String getServeTypeName() 
    {
        return serveTypeName;
    }
    public void setServeItemName(String serveItemName) 
    {
        this.serveItemName = serveItemName;
    }

    public String getServeItemName() 
    {
        return serveItemName;
    }
    public void setServeItemImg(String serveItemImg) 
    {
        this.serveItemImg = serveItemImg;
    }

    public String getServeItemImg() 
    {
        return serveItemImg;
    }
    public void setUnit(Long unit) 
    {
        this.unit = unit;
    }

    public Long getUnit() 
    {
        return unit;
    }
    public void setOrdersStatus(Long ordersStatus) 
    {
        this.ordersStatus = ordersStatus;
    }

    public Long getOrdersStatus() 
    {
        return ordersStatus;
    }
    public void setPayStatus(Long payStatus) 
    {
        this.payStatus = payStatus;
    }

    public Long getPayStatus() 
    {
        return payStatus;
    }
    public void setRefundStatus(Long refundStatus) 
    {
        this.refundStatus = refundStatus;
    }

    public Long getRefundStatus() 
    {
        return refundStatus;
    }
    public void setTradeFinishTime(Date tradeFinishTime) 
    {
        this.tradeFinishTime = tradeFinishTime;
    }

    public Date getTradeFinishTime() 
    {
        return tradeFinishTime;
    }
    public void setTradingChannel(String tradingChannel) 
    {
        this.tradingChannel = tradingChannel;
    }

    public String getTradingChannel() 
    {
        return tradingChannel;
    }
    public void setThirdOrderId(String thirdOrderId) 
    {
        this.thirdOrderId = thirdOrderId;
    }

    public String getThirdOrderId() 
    {
        return thirdOrderId;
    }
    public void setDispatchTime(Date dispatchTime) 
    {
        this.dispatchTime = dispatchTime;
    }

    public Date getDispatchTime() 
    {
        return dispatchTime;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setPurNum(Long purNum) 
    {
        this.purNum = purNum;
    }

    public Long getPurNum() 
    {
        return purNum;
    }
    public void setTotalAmount(BigDecimal totalAmount) 
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount() 
    {
        return totalAmount;
    }
    public void setRealPayAmount(BigDecimal realPayAmount) 
    {
        this.realPayAmount = realPayAmount;
    }

    public BigDecimal getRealPayAmount() 
    {
        return realPayAmount;
    }
    public void setThirdRefundOrderId(String thirdRefundOrderId) 
    {
        this.thirdRefundOrderId = thirdRefundOrderId;
    }

    public String getThirdRefundOrderId() 
    {
        return thirdRefundOrderId;
    }
    public void setDiscountAmount(BigDecimal discountAmount) 
    {
        this.discountAmount = discountAmount;
    }

    public BigDecimal getDiscountAmount() 
    {
        return discountAmount;
    }
    public void setServeAddress(String serveAddress) 
    {
        this.serveAddress = serveAddress;
    }

    public String getServeAddress() 
    {
        return serveAddress;
    }
    public void setContactsPhone(String contactsPhone) 
    {
        this.contactsPhone = contactsPhone;
    }

    public String getContactsPhone() 
    {
        return contactsPhone;
    }
    public void setContactsName(String contactsName) 
    {
        this.contactsName = contactsName;
    }

    public String getContactsName() 
    {
        return contactsName;
    }
    public void setCancelerName(String cancelerName) 
    {
        this.cancelerName = cancelerName;
    }

    public String getCancelerName() 
    {
        return cancelerName;
    }
    public void setServeProviderStaffName(String serveProviderStaffName) 
    {
        this.serveProviderStaffName = serveProviderStaffName;
    }

    public String getServeProviderStaffName() 
    {
        return serveProviderStaffName;
    }
    public void setServeProviderStaffPhone(String serveProviderStaffPhone) 
    {
        this.serveProviderStaffPhone = serveProviderStaffPhone;
    }

    public String getServeProviderStaffPhone() 
    {
        return serveProviderStaffPhone;
    }
    public void setInstitutionName(String institutionName) 
    {
        this.institutionName = institutionName;
    }

    public String getInstitutionName() 
    {
        return institutionName;
    }
    public void setInstitutionPhone(String institutionPhone) 
    {
        this.institutionPhone = institutionPhone;
    }

    public String getInstitutionPhone() 
    {
        return institutionPhone;
    }
    public void setPlaceOrderTime(Date placeOrderTime) 
    {
        this.placeOrderTime = placeOrderTime;
    }

    public Date getPlaceOrderTime() 
    {
        return placeOrderTime;
    }
    public void setServeStartTime(Date serveStartTime) 
    {
        this.serveStartTime = serveStartTime;
    }

    public Date getServeStartTime() 
    {
        return serveStartTime;
    }
    public void setServeEndTime(Date serveEndTime) 
    {
        this.serveEndTime = serveEndTime;
    }

    public Date getServeEndTime() 
    {
        return serveEndTime;
    }
    public void setRealServeStartTime(Date realServeStartTime) 
    {
        this.realServeStartTime = realServeStartTime;
    }

    public Date getRealServeStartTime() 
    {
        return realServeStartTime;
    }
    public void setRealServeEndTime(Date realServeEndTime) 
    {
        this.realServeEndTime = realServeEndTime;
    }

    public Date getRealServeEndTime() 
    {
        return realServeEndTime;
    }
    public void setServeBeforeImgs(String serveBeforeImgs) 
    {
        this.serveBeforeImgs = serveBeforeImgs;
    }

    public String getServeBeforeImgs() 
    {
        return serveBeforeImgs;
    }
    public void setServeBeforeIllustrate(String serveBeforeIllustrate) 
    {
        this.serveBeforeIllustrate = serveBeforeIllustrate;
    }

    public String getServeBeforeIllustrate() 
    {
        return serveBeforeIllustrate;
    }
    public void setServeAfterImgs(String serveAfterImgs) 
    {
        this.serveAfterImgs = serveAfterImgs;
    }

    public String getServeAfterImgs() 
    {
        return serveAfterImgs;
    }
    public void setServeAfterIllustrate(String serveAfterIllustrate) 
    {
        this.serveAfterIllustrate = serveAfterIllustrate;
    }

    public String getServeAfterIllustrate() 
    {
        return serveAfterIllustrate;
    }
    public void setPaymentTimeout(Date paymentTimeout) 
    {
        this.paymentTimeout = paymentTimeout;
    }

    public Date getPaymentTimeout() 
    {
        return paymentTimeout;
    }
    public void setLon(BigDecimal lon) 
    {
        this.lon = lon;
    }

    public BigDecimal getLon() 
    {
        return lon;
    }
    public void setLat(BigDecimal lat) 
    {
        this.lat = lat;
    }

    public BigDecimal getLat() 
    {
        return lat;
    }
    public void setPayTime(Date payTime) 
    {
        this.payTime = payTime;
    }

    public Date getPayTime() 
    {
        return payTime;
    }
    public void setCancelTime(Date cancelTime) 
    {
        this.cancelTime = cancelTime;
    }

    public Date getCancelTime() 
    {
        return cancelTime;
    }
    public void setCancelReason(String cancelReason) 
    {
        this.cancelReason = cancelReason;
    }

    public String getCancelReason() 
    {
        return cancelReason;
    }
    public void setTransactionCompletionTime(Date transactionCompletionTime) 
    {
        this.transactionCompletionTime = transactionCompletionTime;
    }

    public Date getTransactionCompletionTime() 
    {
        return transactionCompletionTime;
    }
    public void setEvaluationTime(Date evaluationTime) 
    {
        this.evaluationTime = evaluationTime;
    }

    public Date getEvaluationTime() 
    {
        return evaluationTime;
    }
    public void setEvaluationScore(BigDecimal evaluationScore) 
    {
        this.evaluationScore = evaluationScore;
    }

    public BigDecimal getEvaluationScore() 
    {
        return evaluationScore;
    }
    public void setDisplay(Long display) 
    {
        this.display = display;
    }

    public Long getDisplay() 
    {
        return display;
    }
    public void setSortTime(Date sortTime) 
    {
        this.sortTime = sortTime;
    }

    public Date getSortTime() 
    {
        return sortTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("serveTypeId", getServeTypeId())
            .append("serveProviderId", getServeProviderId())
            .append("serveProviderType", getServeProviderType())
            .append("serveItemId", getServeItemId())
            .append("serveId", getServeId())
            .append("cityCode", getCityCode())
            .append("serveTypeName", getServeTypeName())
            .append("serveItemName", getServeItemName())
            .append("serveItemImg", getServeItemImg())
            .append("unit", getUnit())
            .append("ordersStatus", getOrdersStatus())
            .append("payStatus", getPayStatus())
            .append("refundStatus", getRefundStatus())
            .append("tradeFinishTime", getTradeFinishTime())
            .append("tradingChannel", getTradingChannel())
            .append("thirdOrderId", getThirdOrderId())
            .append("dispatchTime", getDispatchTime())
            .append("price", getPrice())
            .append("purNum", getPurNum())
            .append("totalAmount", getTotalAmount())
            .append("realPayAmount", getRealPayAmount())
            .append("thirdRefundOrderId", getThirdRefundOrderId())
            .append("discountAmount", getDiscountAmount())
            .append("serveAddress", getServeAddress())
            .append("contactsPhone", getContactsPhone())
            .append("contactsName", getContactsName())
            .append("cancelerName", getCancelerName())
            .append("serveProviderStaffName", getServeProviderStaffName())
            .append("serveProviderStaffPhone", getServeProviderStaffPhone())
            .append("institutionName", getInstitutionName())
            .append("institutionPhone", getInstitutionPhone())
            .append("placeOrderTime", getPlaceOrderTime())
            .append("serveStartTime", getServeStartTime())
            .append("serveEndTime", getServeEndTime())
            .append("realServeStartTime", getRealServeStartTime())
            .append("realServeEndTime", getRealServeEndTime())
            .append("serveBeforeImgs", getServeBeforeImgs())
            .append("serveBeforeIllustrate", getServeBeforeIllustrate())
            .append("serveAfterImgs", getServeAfterImgs())
            .append("serveAfterIllustrate", getServeAfterIllustrate())
            .append("paymentTimeout", getPaymentTimeout())
            .append("lon", getLon())
            .append("lat", getLat())
            .append("payTime", getPayTime())
            .append("cancelTime", getCancelTime())
            .append("cancelReason", getCancelReason())
            .append("transactionCompletionTime", getTransactionCompletionTime())
            .append("evaluationTime", getEvaluationTime())
            .append("evaluationScore", getEvaluationScore())
            .append("display", getDisplay())
            .append("sortTime", getSortTime())
            .toString();
    }
}
